import http from '@http/http'
export const upload = () => http.GET(`/api/file/upload`)
export const insertStudentLocation = (studentLocation) => http.POST(`api/studentLocation/insert`, studentLocation)
export const queryStudentLocationById = (uid, aid) => http.GET(`api/studentLocation/queryById?uid=${uid}&aid=${aid}`)
export const deleteStudentLocation = (uid, aid) => http.GET(`api/studentLocation/deleteStudentLocation?uid=${uid}&aid=${aid}`)
export const downloadFile = obj => http.EXPORT(`/api/file/download`, obj)
export const sendEmail = (email, phone, name, message) => http.POST(`https://formspree.io/f/mwkgpeyy`, {email, phone, name, message})
